package com.itxx.homeWork.extends1;

public class Tv extends ElectricalAppliances {
    //屏幕尺寸
    private String type;
    //分辨率
    private String resolution;

    public Tv() {
    }

    public Tv(String brand, String model, String color, double price, String type, String resolution) {
        super(brand, model, color, price);
        this.type = type;
        this.resolution = resolution;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getResolution() {
        return resolution;
    }

    public void setResolution(String resolution) {
        this.resolution = resolution;
    }

    public void show() {
        System.out.println("电视的品牌是" + getBrand() + " 型号是:" + getModel() + " 颜色是:" + getColor() + " 售价是:" + getPrice() + " 屏幕尺寸:" + type + " 分辨率:" + resolution);
    }
}
